﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dycox.ComponentModel
{
    public class ErrorEventArgs : EventArgs
    {
        public ErrorEventArgs(MessageSet messages)
        {
            if (messages == null)
                throw new ArgumentNullException("messages");
            _messages = messages;
        }

        private MessageSet _messages;

        public MessageSet Messages
        {
            get { return _messages; }
        }

    }

    public delegate void ErrorEventHandler(object sender, ErrorEventArgs e);
}
